package com.ccxe.manage.pageutil;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import javax.resource.cci.ResultSet;

public class ListUtil {
   
	public static List<Object> ResultSet2List(ResultSet rs){
		
		List<Object> resultList=new ArrayList<Object>();
		try {
			while(rs.next()){ 
				try {
					resultList.add(rs.next());
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return resultList; 
	}
}
